home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / NDK / NDK_3.1 / Examples1 / locale / SelfLoad / catalog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-04  |  1.4 KB  |  56 lines

  1. #ifndef CATALOG_H
  2. #define CATALOG_H
  3.  
  4.  
  5. /*****************************************************************************/
  6.  
  7.  
  8. #include <exec/types.h>
  9. #include <libraries/locale.h>
  10.  
  11.  
  12. /*****************************************************************************/
  13.  
  14.  
  15. struct XCatalog
  16. {
  17.     struct Node    ec_Link;       /* for internal linkage               */
  18.     UWORD          ec_Pad;        /* to longword align                    */
  19.     STRPTR         ec_Language;   /* language of the catalog, may be NULL */
  20.     ULONG          ec_CodeSet;    /* currently always 0                   */
  21.     UWORD          ec_Version;    /* version of the catalog               */
  22.     UWORD          ec_Revision;   /* revision of the catalog              */
  23.     char           ec_LanguageStr[32];
  24.     APTR           ec_Strings;
  25. };
  26.  
  27. /*****************************************************************************/
  28.  
  29. /* tags on stack interface */
  30. struct Catalog *XOpenCatalog(struct Locale *locale,
  31.                   STRPTR name,
  32.                   ULONG tags, ...);
  33.  
  34. /* tag list pointer interface */
  35. struct Catalog *XOpenCatalogA(struct Locale *locale,
  36.                    STRPTR name,
  37.                    struct TagItem *tags);
  38.  
  39.  
  40. VOID   XCloseCatalog(struct Catalog *catalog);
  41.  
  42. STRPTR XGetString( LONG id);
  43.  
  44. STRPTR XGetCatalogStr(struct Catalog *catalog,
  45.                LONG stringNum,
  46.                STRPTR defaultString);
  47.  
  48.  
  49.  
  50.  
  51. /*****************************************************************************/
  52.  
  53.  
  54. #endif /* CATALOG_H */
  55.  
  56.